<?php

namespace app\api\model;

use think\Model;

class Users extends Model
{
  // 设置表名
  protected $table = 'niuli_app_users';
  protected $pk    = 'id';
  protected $autoWriteTimestamp = true;
  

  //　写入数据
  public function addUser($data){
    return $this->data($data)->allowField(true)->save();
  }
}
